<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->

<title>termname</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_002_001_006">&nbsp;</a>NAME</h4><blockquote>
termname - get terminal name
</blockquote><h4><a name = "tag_002_001_007">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;<a href="curses.h.html">curses.h</a>&gt;

char *termname(void);
</code>
</pre>
</blockquote><h4><a name = "tag_002_001_008">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>termname()</i>
function obtains the terminal name as recorded by
<i><a href="setupterm.html">setupterm()</a></i>.
</blockquote><h4><a name = "tag_002_001_009">&nbsp;</a>RETURN VALUE</h4><blockquote>
The
<i>termname()</i>
function returns a pointer to the terminal name.
</blockquote><h4><a name = "tag_002_001_010">&nbsp;</a>ERRORS</h4><blockquote>
No errors are defined.
</blockquote><h4><a name = "tag_002_001_011">&nbsp;</a>SEE ALSO</h4><blockquote>
<xref href=minmax><a href="terminfo.html#tag_002_001_001">
Minimum Guaranteed Limits
</a></xref>,
<i><a href="del_curterm.html">del_curterm()</a></i>,
<i><a href="../xsh/getenv.html">getenv()</a></i>
(in the <b>XSH</b> specification),
<i><a href="initscr.html">initscr()</a></i>,
<i><a href="curses.h.html">&lt;curses.h&gt;</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
